// utils/response.js
exports.success = (res, message = "成功", data = null) => {
  res.json({ code: 200, message, data });
};

exports.fail = (res, message = "失败", code = 201, data = null) => {
  res.json({ code, message, data });
};
